package tech.mobi.child.ui;

import tech.mobi.child.base.BaseAct;
import tech.mobi.child.utils.UserInfo;
import tech.mobi.child.R;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.widget.Toast;

public class CallNameMainAct extends BaseAct implements OnClickListener {


	private ImageView ivBack;
	private TextView tvTitle;
	private ProgressBar progress;
	
	private GridView gvMainList;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ui_call_name_client_main);

		ivBack = (ImageView) this.findViewById(R.id.ivBack);
		ivBack.setOnClickListener(this);
		tvTitle = (TextView) this.findViewById(R.id.tvTitle);
		progress = (ProgressBar) this.findViewById(R.id.progress);
		
		Intent intent = this.getIntent();
		if (intent != null && !"".equals(intent.getStringExtra("name"))) {
			tvTitle.setText(intent.getStringExtra("name"));
		}

		gvMainList = (GridView) this.findViewById(R.id.gvMainList);
//		String strUserName = UserInfo.getUserName(this);
		
	}
	
	@SuppressWarnings("unused")
	private void setClickEnable(boolean bool) {
		if (bool) {
			this.progress.setVisibility(View.GONE);
		} else {
			this.progress.setVisibility(View.VISIBLE);
		}
	}

	@Override
	public void onClick(View v) {
		if(v.getId()==R.id.ivBack) {
			this.finish();
		}
	}

	@Override
	public void init() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void refresh(Object... param) {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected boolean isRouteDisplayed() {
		// TODO Auto-generated method stub
		return false;
	}


}
